package com.shop.goods.service;

import com.shop.domain.ProductDetails;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author 靳润波
* @description 针对表【goods_product_details(商品详情表)】的数据库操作Service
* @createDate 2024-08-01 11:20:28
*/
public interface ProductDetailsService extends IService<ProductDetails> {

    List<ProductDetails> selectAll();

    List<ProductDetails> selectList(ProductDetails iProductDetails);

    Integer insert(ProductDetails iProductDetails);

    Integer delete(String ids);

    Integer update(ProductDetails iProductDetails);


    Integer reduceStock(Long productId, Integer num);
}
